package com.sxpi.controller;

import com.sxpi.common.result.Result;
import com.sxpi.model.vo.CostumeCategoriesVo;
import com.sxpi.service.CostumeCategoriesService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/costumeCategories")
public class CostumeCategoriesController {
    @Resource
    private CostumeCategoriesService costumeCategoriesService;

    /**
     * 获取所有服饰分类
     */
    @GetMapping("/getAllCategories")
    public Result<List<CostumeCategoriesVo>> getAllCostumeCategories() {
        return costumeCategoriesService.getAllCategories();
    }


    /**
     *
     *获取热门服饰
     */
    @GetMapping("/getHotCostumes")
    public Result<Map<String, Object>> getHotCostumes() {
        return costumeCategoriesService.getHotCostumes();
    }


}
